package org.musicmaster.yulin.business;

import java.util.List;

import org.musicmaster.yulin.business.domain.User;
import org.musicmaster.yulin.business.domain.User.Sex;

public interface UserService {
	
	User findById(long id);
	
	List<User> findByPage(int startIndex, int limit);
	
	List<User> findBySex(Sex sex);
	
	List<User> findByAge(int lessAge);
	
	List<User> findByUsers(List<User> users);
	
	boolean update(User user);
	
	boolean deleteById(long id);
}
